package com.linked.store.thing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linked.store.thing.bean.po.BrandInfoPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author :dbq
 * @date : 2023/4/3 14:03
 * @description : desc
 */
@Mapper
public interface IBrandInfoMapper extends BaseMapper<BrandInfoPO> {
    @Select("SELECT * FROM store_brand_info WHERE data_status = 1 AND brand_name = #{brandName} LIMIT 1")
    BrandInfoPO findBrandByName(@Param("brandName") String brandName);
}
